<template>
    <div>
        <van-swipe :autoplay="3000" style="height: 200px">
            <van-swipe-item v-for="(item, index) in images" :key="index">
                <a :href="item.link"><van-image heigth="200" :src="item"></van-image></a>
            </van-swipe-item>
        </van-swipe>
    </div>
</template>

<script>
  import Vue from 'vue';
  import { Swipe, SwipeItem ,Image} from 'vant';

  Vue.use(Swipe).use(SwipeItem).use(Image);
  export default {
    name: "Swipe",
    props:{
      images:Array
    },
    methods:{

    }
  }
</script>

<style scoped>

</style>
